package com.diandi.signature.bean.runbatch;

import com.alibaba.fastjson.annotation.JSONField;
import com.diandi.signature.bean.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 签章跑批信息
 * @author mwz
 * @create 2017-08-23 14:03
 * @version V1.0.0
 */
public class SignatureBatchRunInfo extends BaseEntity {

    /*签章流水号*/
    private String  signatureCode ;
    /*签章接口交易号*/
    private String  signatureTrade     ;

    /*用户ID(借款人ID)*/
    private Long  userId     ;
    /*'商户号*/
    private String  merchantNo     ;

    /*通道编码*/
    private String  passCode     ;

    /*合同批次号*/
    private String  contractBatchCode     ;

    /*合同编号*/
    private String  contractCode     ;

    /*合同模板ID*/
    private String  contractTemplateCode     ;

    /*合同标题*/
    private String  contractTitle     ;

    /*标的ID*/
    private Long  borrowId     ;

    /*接口类型1:CA认证,2:合同自动签署,3:修改用户信息,4:渲染合同,5:合同归档,6:模板上传,7:合同文件上传)*/
    private Integer  InterfaceType     ;

    /*请求消息*/
    private String   requestMsg     ;

    /*报文信息*/
    private String   pgkMsg ;

    /*重试次数*/
    private Integer retryTimes;

    /*下次重试时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date nextTime;
    /*回调URL*/
    private String   notifyUrl     ;

    /*状态*/
    private String   status ;

    public String getSignatureCode() {
        return signatureCode;
    }

    public void setSignatureCode(String signatureCode) {
        this.signatureCode = signatureCode;
    }

    public String getSignatureTrade() {
        return signatureTrade;
    }

    public void setSignatureTrade(String signatureTrade) {
        this.signatureTrade = signatureTrade;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getMerchantNo() {
        return merchantNo;
    }

    public void setMerchantNo(String merchantNo) {
        this.merchantNo = merchantNo;
    }

    public String getPassCode() {
        return passCode;
    }

    public void setPassCode(String passCode) {
        this.passCode = passCode;
    }

    public String getContractBatchCode() {
        return contractBatchCode;
    }

    public void setContractBatchCode(String contractBatchCode) {
        this.contractBatchCode = contractBatchCode;
    }

    public String getContractCode() {
        return contractCode;
    }

    public void setContractCode(String contractCode) {
        this.contractCode = contractCode;
    }

    public String getContractTemplateCode() {
        return contractTemplateCode;
    }

    public void setContractTemplateCode(String contractTemplateCode) {
        this.contractTemplateCode = contractTemplateCode;
    }

    public String getContractTitle() {
        return contractTitle;
    }

    public void setContractTitle(String contractTitle) {
        this.contractTitle = contractTitle;
    }

    public Long getBorrowId() {
        return borrowId;
    }

    public void setBorrowId(Long borrowId) {
        this.borrowId = borrowId;
    }

    public Integer getInterfaceType() {
        return InterfaceType;
    }

    public void setInterfaceType(Integer interfaceType) {
        InterfaceType = interfaceType;
    }

    public String getRequestMsg() {
        return requestMsg;
    }

    public void setRequestMsg(String requestMsg) {
        this.requestMsg = requestMsg;
    }

    public String getPgkMsg() {
        return pgkMsg;
    }

    public void setPgkMsg(String pgkMsg) {
        this.pgkMsg = pgkMsg;
    }

    public Integer getRetryTimes() {
        return retryTimes;
    }

    public void setRetryTimes(Integer retryTimes) {
        this.retryTimes = retryTimes;
    }

    public Date getNextTime() {
        return nextTime;
    }

    public void setNextTime(Date nextTime) {
        this.nextTime = nextTime;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
